﻿using System;

namespace Yaml.Presentation.Tokens {
    public class ScalarToken : Token {
        private bool plain;
        private char style;

        public ScalarToken(Mark start, Mark end, string value, bool plain)
            : this(start, end, value, plain, (char)0) {
        }

        public ScalarToken(Mark start, Mark end, string value, bool plain, char style) : base(start, end) {
            this.plain = plain;
            this.style = style;
        }

        public bool IsPlain {
            get { return this.plain; }
        }

        public char Style {
            get { return this.style; }
        }
    }
}
